﻿<extend name="Public:base" />
<block name="title"><title>个人资料</title></block>
<block name="header_styles">
    <style type="text/css">
        .fancybox-inner {
            border-radius: 5px;
        }
        .temp-warning{display:inline-block;border:1px solid #999;margin-left: 10px;padding: 3px;}
    </style>
</block>
<block name="main">
    <include file="Finance:common-statistic" />
    
    <notempty name="tipArr">
    <div class="finance-warning">
        <div class="pull-left">
            <label>财务提醒：</label>
        </div>
        <volist name="tipArr" id="tip">
        <div class="pull-left">
            {$tip.msg}<br />
            <if condition="$tip.ftype eq 1">
            <span class="text-green">如果发现雇主付款与约定不符，请与雇主确认后再确认评价。</span>
            </if>
        </div>
        <a href="javascript:;" class="temp-warning">╳&nbsp;不再提醒</a>
        <div class="clearfix"></div>
        </volist>
    </div>
    </notempty>
    <div class="finance-table">
        <div class="finance-table-heading">
            <ul>
                <li class="active"><a href="#">进行中</a></li>
            </ul>
        </div>
        <table>
            <tr>
                <th>托管类型</th>
                <th>职位名称</th>
                <th>所属团队</th>
                <th>入职时间</th>
                <th>约定薪酬</th>
                <th>实发薪酬</th>
                <th>支付状态</th>
                <th>操作</th>
            </tr>
            <if condition="is_null($doingjobArr)">
            <tr><td colspan="8">当前没有进行中的职位</td></tr>
            <elseif condition="$doingjobArr['instalment'] eq 1" />
            <tr data-did="{$doingjobArr.id}">
                <td>全额托管</td>
                <td>{$doingjobArr.jname}</td>
                <td>{$userinfo['teamname']}</td>
                <td>{$doingjobArr.jointime|date='Y.m.d',###}</td>
                <td>{$doingjobArr.salary}元</td>
                <td>—</td>
                <td>{$doingjobArr.moneyin|toTuoguanDesc}</td>
                <td><a href="javascripti:void(0);" class="btn btn-green2 urge-pay">催促付款</a></td>
            </tr>
            <else />
            <tr>
                <td>分期托管</td>
                <td>{$doingjobArr.jname}</td>
                <td>{$userinfo['teamname']}</td>
                <td>{$doingjobArr.jointime|date='Y.m.d',###}</td>
                <td>{$doingjobArr.salary}元</td>
                <td>—</td>
                <td><i class="fa fa-chevron-down"></i></td>
                <td><i class="fa fa-chevron-down"></i></td>
            </tr>
            <volist name="doingjobArr['ins']" id="item" key='i'>
            <tr class="tr-steps" data-xid="{$item.id}">
                <td></td>
                <td></td>
                <td></td>
                <td class="text-right"><strong>第{$i}笔</strong></td>
                <td>{$item.amount}元</td>
                <td>—</td>
                <td>{$item.moneyin|toTuoguanDesc}</td>
                <td>
                    <a href="javascript:void(0);" class="btn btn-green2 confirm">确认</a>
                    <!-- <a href="javascript:void(0);" class="btn btn-green2">催促付款</a> -->
                    <!-- <a href="javascript:void(0);" class="btn btn-green2 urge-host">催促托管</a> -->
                </td>
            </tr>
            </volist>
            </if>
        </table>
    </div>
    <include file="Finance:common-list" />
    <include file="Finance:common-boxtpl" />
</block>
<block name="footer_scripts">
    <include file="Finance:common-script" />
    <script type="text/javascript">
        requirejs(["jquery", "modules/message"], function ($, message) {
            $(function () {
                $("a.get-cash").click(function () {
                    $.fancybox.open("/Html-cash.html", {
                        autoResize: true,
                        type: 'iframe',
                        fitToView: true,
                        padding: 0,
                        closeBtn: false,
                        width: 550,
                    });
                });

                $("a.recharge").click(function () {
                    $.fancybox.open("/Html-recharge.html", {
                        autoResize: true,
                        type: 'iframe',
                        fitToView: true,
                        padding: 0,
                        closeBtn: false,
                        width: 400,
                    });
                });

                $("a.urge-pay").click(function () {
                    message.alert({ title: "催促付款", content: "已催促雇主付款，静侯佳音吧！" })
                });

                $("a.confirm-comment").click(function () {
                    $.fancybox.open("/Html-feedback.html", {
                        autoResize: true,
                        type: 'iframe',
                        fitToView: true,
                        padding: 0,
                        closeBtn: false,
                        width: 700,
                    });
                });
                $("a.confirm").click(function () {
                    message.alert({ title: "确认", content: "确认" })
                });
                $("a.urge-host").click(function () {
                    message.alert({ title: "催促托管", content: "已催促雇主托管，静侯佳音吧！" })
                });

                //$.fancybox.open("#formFirstTime", { type: "inline", padding: 0, scrolling: 'no', closeBtn: false, modal: true });
            });
        });
    </script>
</block>